From: Jens Frank Date: Fri, 10 Sep 2004 00:31:55 +0000 (+0000) Subject: fixed warning on category pages. changing order of conditions ensures that $index... X-Git-Tag: 1.5.0alpha1~2034 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=a1c7efaeeb6f5f5069a223345971ea5d9d07348c;p=lhc%2Fweb%2Fwiklou.git fixed warning on category pages. changing order of conditions ensures that $index-1 is a valid index --- diff --git a/includes/CategoryPage.php b/includes/CategoryPage.php index e7b728db5d..5070c1bde7 100644 --- a/includes/CategoryPage.php +++ b/includes/CategoryPage.php @@ -191,8 +191,8 @@ class CategoryPage extends Article { $index++ ) { // check for change of starting letter or begging of chunk - if ( ($children_start_char[$index] != $children_start_char[$index - 1]) - || ($index == $startChunk) ) + if ( ($index == $startChunk) + || ($children_start_char[$index] != $children_start_char[$index - 1]) ) { $r .= "

{$children_start_char[$index]}

\n